# ==============================
# _*_ coding:utf-8 _*_
# _*_ by:zizle     _*_
# _*_ at:20230417  _*_
# ==============================

BASE_DATABASE = {
    'host': 'localhost',
    'port': 3306,
    'user': 'root',
    'password': 'mysql',
    'database': 'ruizhi',
    'charset': 'utf8mb4'
}

INDEX_DATABASE = {
    'host': 'localhost',
    'port': 3306,
    'user': 'root',
    'password': 'mysql',
    'charset': 'utf8mb4'
}

DEPARTMENT_WORK_DATABASE = {
    'host': 'localhost',
    'port': 3306,
    'user': 'root',
    'password': 'mysql',
    'database': 'futures_assistant',
    'charset': 'utf8mb4'
}

REDIS_DATABASE = {
    'host': 'localhost',
    'port': '6379',
    'db': 1
}


INDEX_DB_NAMES = [f'ruizhi_db{i:0>2d}' for i in range(1, 3)]
DB_TABLE_MAX_COUNT = 8000
